home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
SYS
/
s
/
SASC
/
FindAutoDoc.bed
< prev
next >
Wrap
Text File
|
1996-09-26
|
825b
|
51 lines
/*
** $VER: FindAutoDoc.bed 1.0 (14.01.96)
**
** Display the AutoDoc of the System Function under the cursor
**
** It needs:
** - The AutoDocs in the directory AUTODOCS:
** - The "AUTODOCS:Autodocs.lst" containing the references to the AutoDocs
*/
xreffile = "AUTODOCS:Autodocs.lst"
OPTIONS RESULTS
'GetWord'
word = RESULT
IF word="" THEN DO
'SetStatusBar "Cursor not on a word"'
RETURN
END
'OpenDoc WINDOW=READONLY NAME' xreffile
docPort = RESULT
ADDRESS VALUE docPort
'SetDisplayLock ON'
'SetPrefs FindBackward OFF'
'SetPrefs FindIgnoreCase ON'
'SetPrefs FindWholeWord ON'
'Find' word
IF RC ~= 0 THEN DO
'BeepScreen'
'CloseDoc'
ADDRESS
'SetStatusBar "Autodoc not found"'
RETURN
END
'GetLine'
PARSE VAR RESULT word '"'path'"' line
'OpenFile NAME' path
'Move LINE' line
'ScrollView 1'
'SetDisplayLock OFF'